#include "Utils.h"

void trim_right(string &source) {
    source.erase(source.find_last_not_of(" ")+1);
}
void trim_left(string &source) {
    source.erase(0, source.find_first_not_of(" "));
}

void trim(string &source) {
    trim_right(source);
    trim_left(source);
}